package com.Entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Favouritevideo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "favouritevideo", catalog = "monitor")
public class Favouritevideo implements java.io.Serializable {

	// Fields

	private Integer favouriteId;
	private Integer videoId;
	private Integer userId;
	private Date favouriteTime;

	// Constructors

	/** default constructor */
	public Favouritevideo() {
	}

	/** full constructor */
	public Favouritevideo(Integer videoId, Integer userId, Date favouriteTime) {
		this.videoId = videoId;
		this.userId = userId;
		this.favouriteTime = favouriteTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "favouriteId", unique = true, nullable = false)
	public Integer getFavouriteId() {
		return this.favouriteId;
	}

	public void setFavouriteId(Integer favouriteId) {
		this.favouriteId = favouriteId;
	}

	@Column(name = "videoId")
	public Integer getVideoId() {
		return this.videoId;
	}

	public void setVideoId(Integer videoId) {
		this.videoId = videoId;
	}

	@Column(name = "userId")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "favouriteTime")
	public Date getFavouriteTime() {
		return this.favouriteTime;
	}

	public void setFavouriteTime(Date favouriteTime) {
		this.favouriteTime = favouriteTime;
	}

}